package cn.com.yusys.yusp.admin.service;
import java.util.List;
import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "${service.feignclient.name.yusp-app-common:yusp-app-common}", path = "/api/adminsmlookupitem",fallback= AdminSmLookupItemClientHystrix.class   )
public interface AdminSmLookupItemClient {
    
	@RequestMapping(method = RequestMethod.GET, value = "/getLookupItemCode")
	public List<String> getLookupItemCode(@RequestParam("lookupCodes") String lookupCodes);

	/**
	 * 根据字典项类型返回字典项的字典码和字典码名称
	 * @param lookupCode 字典项
	 * @return
	 */
	@RequestMapping(method = RequestMethod.GET, value = "/getlookupcode")
	public Map<String, String> getLookupCode(@RequestParam("lookupCode") String lookupCode);

	/**
	 * 根据字典项和字典码获取字典码名称
	 * @param lookupCode 字典项
	 * @param lookupItemCode 字典码
	 * @return
	 */
	@RequestMapping(method = RequestMethod.GET, value = "/getlookupitemname")
	public String getLookupItemName(@RequestParam("lookupCode") String lookupCode, @RequestParam("lookupItemCode") String lookupItemCode);

}